package com.sie.util;

import com.sie.entity.Authority;
import com.sie.entity.Role;

import java.util.List;

public class RoleAuthorityFormatUtils {
    public static List roleFormat(List<Role> list){
        list.forEach(role -> {
            role.setRoleName(role.getRoleName().substring(5));
        });
        return list;
    }

    public static List authorityFormat(List<Authority> list) {
        list.forEach(authority -> {
            authority.setAuthName(authority.getAuthName().substring(5));
        });
        return list;
    }
}
